import { Spin } from 'antd'
import styled from 'styled-components'

interface Props {
    show: boolean
}

const Container = styled(Spin)`

`

const Loading: React.FC<Props> = ({ show }) => {
    return (
        show ?
            <Container
                spinning={show}
                fullscreen
            /> : <></>
    )
}

export default Loading